Jasper St. Pierre [Sun, 29 Jul 2012 16:43:26 +0000 (13:43 -0300)]
menubutton: Clear references in dispose, not finalize
We need to do this here so that an explicit gtk_widget_destroy
on either the widget or a container that holds it will kill the
reference to the menu or model.
https://bugzilla.gnome.org/show_bug.cgi?id=680803
Matthias Clasen [Mon, 30 Jul 2012 08:44:22 +0000 (10:44 +0200)]
Improve threading documentation
This commit just adds a small section to the threading documentation
about the deprecation. More is needed here, including a migration
example.
Matthias Clasen [Sat, 28 Jul 2012 15:23:17 +0000 (17:23 +0200)]
gdk: Deprecate thread functions
This commit deprecates gdk_threads_init, gdk_threads_enter,
gdk_threads_leave and gdk_threads_set_lock_functions. Using GTK+
from multiple threads does not work at all on Windows, and is
problematic on other platforms as well. We want to move to a world
where all GTK+ calls are made from the main thread.
Use g_main_context_invoke, g_idle_add and related functions if you
need to schedule GTK+ calls from other threads.
http://bugzilla.gnome.org/show_bug.cgi?id=680754
Matthias Clasen [Mon, 30 Jul 2012 09:15:40 +0000 (11:15 +0200)]
demos: Don't use GDK_THREADS_ENTER/LEAVE macros
We don't use threads here, so no need to use them.
Matthias Clasen [Mon, 30 Jul 2012 08:37:32 +0000 (10:37 +0200)]
modules: Don't use GDK_THREADS_ENTER/LEAVE macros internally
These are just wrappers for the functions, and we want to
deprecate them. Stopping to use them internally is a good
first step. Also define GTK_COMPILATION so we can keep using
gdk_threads_enter/leave without causing deprecation warnings.
Matthias Clasen [Sat, 28 Jul 2012 12:52:40 +0000 (14:52 +0200)]
gtk: Don't use GDK_THREADS_ENTER/LEAVE macros internally
These are just wrappers for the functions, and we want to
deprecate them. Stopping to use them internally is a good
first step.
Matthias Clasen [Sat, 28 Jul 2012 12:40:04 +0000 (14:40 +0200)]
gdk: Don't use GDK_THREADS_ENTER/LEAVE macros internally
These are just wrappers for the functions, and we want to
deprecate them. Stopping to use them internally is a good
first step.
Philip Withnall [Mon, 30 Jul 2012 10:38:59 +0000 (12:38 +0200)]
Bug 680822 — Document return value of GtkWidget::draw
Document the boolean accumulator used by GtkWidget::draw and a few other
GtkWidget signals.
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=680822
Fran Diéguez [Mon, 30 Jul 2012 00:32:03 +0000 (02:32 +0200)]
Updated Galician translations
Rob Bradford [Sat, 28 Jul 2012 14:17:11 +0000 (15:17 +0100)]
window: Update _gtk_window_set_is_active API comment
The comment referenced GTK_TOPLEVEL which has been replaced by
GTK_WINDOW_TOPLEVEL.
Praveen Illa [Thu, 26 Jul 2012 17:39:14 +0000 (23:09 +0530)]
Updated Telugu Translation
Chun-wei Fan [Thu, 26 Jul 2012 10:04:22 +0000 (18:04 +0800)]
Visual C++ property sheets: Remove wrong "install" line
We have gailutil-3.0.lib, not gailutil.lib
Chun-wei Fan [Thu, 26 Jul 2012 07:39:51 +0000 (15:39 +0800)]
Visual C++ projects: Update .dll/.lib naming
Remove the "-win32-" from the output file names for the GDK and GTK+ DLLs,
like what is now done for quite a while on other platforms
(and MinGW builds), for consistency reasons. This is due to GDK/GTK+
are buildable with multiple backends.
Note: For references, the Windows build only builds the Win32 backend
for the time being.
Baurzhan Muftakhidinov [Thu, 26 Jul 2012 03:14:33 +0000 (09:14 +0600)]
Updated Kazakh translation
Мирослав Николић [Wed, 25 Jul 2012 21:29:24 +0000 (23:29 +0200)]
Updated Serbian translation
Мирослав Николић [Wed, 25 Jul 2012 21:23:48 +0000 (23:23 +0200)]
Updated Serbian translation
Tom Tryfonidis [Tue, 24 Jul 2012 15:14:05 +0000 (18:14 +0300)]
Updated Greek translations
Kjartan Maraas [Mon, 23 Jul 2012 09:46:43 +0000 (11:46 +0200)]
Updated Norwegian bokmål translation
Matthias Clasen [Mon, 23 Jul 2012 01:01:15 +0000 (21:01 -0400)]
Add an example for handling app menu fallback
The example shows how to use a menu button instead of the default
menubar when the shell doesn't show the app menu.
Wolfgang Stoeggl [Sun, 22 Jul 2012 19:43:49 +0000 (21:43 +0200)]
Updated German translation
Daniel Mustieles [Sat, 21 Jul 2012 16:49:57 +0000 (18:49 +0200)]
Updated Spanish translation
Frédéric Péters [Thu, 19 Jul 2012 14:46:05 +0000 (16:46 +0200)]
widget-factory: add two GtkLevelBar (continuous and discrete)
Matej Urbančič [Thu, 19 Jul 2012 08:11:16 +0000 (10:11 +0200)]
Updated Slovenian translation
Piotr Drąg [Wed, 18 Jul 2012 21:10:30 +0000 (23:10 +0200)]
Updated POTFILES.in
Rob Bradford [Wed, 18 Jul 2012 15:16:56 +0000 (16:16 +0100)]
wayland: Fallback to setting transient windows if no seat available
If we don't have a wl_seat - because a grab hasn't been initialised by GTK+
then fallback to making the shell surface transient to the parent rather than
a popup surface.
Rob Bradford [Wed, 18 Jul 2012 15:06:06 +0000 (16:06 +0100)]
wayland: Don't compare against GdkWindowTypeHint as a bitmask
The hint was being compared as a bitmask which means types that were not in
the list were being erroneously matched
Chao-Hsiung Liao [Wed, 18 Jul 2012 11:33:41 +0000 (19:33 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
José Dapena Paz [Mon, 16 Jul 2012 06:38:31 +0000 (08:38 +0200)]
wayland: Add default settings implementation for Wayland backend.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
José Dapena Paz [Mon, 16 Jul 2012 13:49:51 +0000 (15:49 +0200)]
wayland: don't wipe clipboard on any change coming from the same owner.
We now support independent selection and primary clipboards, and avoid
wiping clipboard on modifying its contents from the same owner. This fixes
most of the interaction issues with clipboard and selection.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Daniel Mustieles [Tue, 17 Jul 2012 10:04:56 +0000 (12:04 +0200)]
Updated Spanish translation
Rui Matos [Sat, 14 Jul 2012 00:34:26 +0000 (02:34 +0200)]
GtkTreeModelFilter: Fix _iter_previous() when iter points at 2nd node
GSequence iterators point at the position between two elements so an
iterator pointing at the N tree model node is actually between the N-1
and N sequence elements. This means that asking for the previous
sequence iterator first and then checking if it is the begin iterator
would yeld true for an iterator pointing at the 2nd tree model node
and make us return FALSE mistakenly.
https://bugzilla.gnome.org/show_bug.cgi?id=679910
Rui Matos [Mon, 16 Jul 2012 17:14:17 +0000 (19:14 +0200)]
tests/filtermodel: Add test for bug 679910
José Dapena Paz [Mon, 16 Jul 2012 19:08:20 +0000 (20:08 +0100)]
wayland: Initial version of keyboard key event handling
Review comment: I think the implementation of the vfuncs in gdkkeys-wayland.c
depend on that we're using the keysysm as the hardware keycode. I think that
needs to be evaluated for the future. But for now this patch gives reasonably
complete keyboard input.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
José Dapena Paz [Mon, 16 Jul 2012 18:51:48 +0000 (19:51 +0100)]
wayland: Hook up _get_num_lock / _get_caps_lock to read from XKB state
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Rob Bradford [Mon, 16 Jul 2012 18:45:57 +0000 (19:45 +0100)]
wayland: Remove unused function declaration
Rob Bradford [Mon, 16 Jul 2012 18:29:16 +0000 (19:29 +0100)]
wayland: Remove annoying whitespace
José Dapena Paz [Mon, 16 Jul 2012 18:16:48 +0000 (19:16 +0100)]
wayland: Create and expose an xkb_state on the keymap object
This is then logically associated with the input device since each (keyboard)
input device has its own keymap.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
José Dapena Paz [Mon, 16 Jul 2012 18:02:41 +0000 (19:02 +0100)]
wayland: Refactor the keymap handling so it is associated with device
Although GDK expects the keymap to be associated with the display under
Wayland this is really associated with the input device so expose this by
finding the first keyboard device.
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Matthias Clasen [Mon, 16 Jul 2012 19:08:17 +0000 (15:08 -0400)]
Bump version
Matthias Clasen [Mon, 16 Jul 2012 12:33:07 +0000 (08:33 -0400)]
3.5.8
Matthias Clasen [Mon, 16 Jul 2012 18:27:03 +0000 (14:27 -0400)]
More updates
Tomas Bzatek [Mon, 16 Jul 2012 15:29:01 +0000 (17:29 +0200)]
New gtk-launch command
This program launches an application specified by its desktop name
optinally taking list of URIs which are passed as arguments.
Uses GdkAppLaunchContext to get proper startup notification and
display handling for graphical apps.
https://bugzilla.gnome.org/show_bug.cgi?id=679342
Piotr Drąg [Mon, 16 Jul 2012 15:43:11 +0000 (17:43 +0200)]
Updated POTFILES.in
Rob Bradford [Mon, 16 Jul 2012 14:36:40 +0000 (15:36 +0100)]
wayland: Use the correct union member for axis events
Otherwise we end up overriding other members of the struct (in this case the
device pointer) and generate an error.
José Dapena Paz [Fri, 13 Jul 2012 14:29:25 +0000 (16:29 +0200)]
wayland: implementation of pointer_handle_axis.
We translate wayland pointer axis events to GDK smooth scroll events, to
implement pointer_handle_axis events.
https://bugzilla.gnome.org/show_bug.cgi?id=679986
Signed-off-by: Rob Bradford <rob@linux.intel.com>
Cosimo Cecchi [Wed, 11 Jul 2012 15:22:20 +0000 (11:22 -0400)]
cellrendererpix: set the IMAGE style class when rendering an icon
This way, themes can change symbolic icon colors for views, by using a
.view.image {
}
CSS selector.
https://bugzilla.gnome.org/show_bug.cgi?id=680008
Rob Bradford [Mon, 16 Jul 2012 12:40:55 +0000 (13:40 +0100)]
wayland: Implement the keyboard_enter/keyboard_leave events
This code is derived from the old keyboard focus change event handling.
Rob Bradford [Mon, 16 Jul 2012 12:39:32 +0000 (13:39 +0100)]
wayland: data_device.data_offer now has a safe object wrapper
The prototype for the listener has changed to provide a typesafe object rather
than an id that you have to bind into an object yourself.
Rob Bradford [Mon, 16 Jul 2012 11:33:35 +0000 (12:33 +0100)]
wayland: Process the keymap that is sent over from the compositor
Load the keymap from the file descriptor that the compositor has sent us and
then save that into our internal object for future use.
Rob Bradford [Sat, 14 Jul 2012 17:37:47 +0000 (18:37 +0100)]
wayland: Expose _gdk_wayland_display_get_keymap internally
Matthias Clasen [Mon, 16 Jul 2012 10:49:11 +0000 (06:49 -0400)]
Updates
Cosimo Cecchi [Thu, 12 Jul 2012 14:34:28 +0000 (10:34 -0400)]
tests: add a test for GtkLevelBar GtkBuildable implementation
https://bugzilla.gnome.org/show_bug.cgi?id=677892
Cosimo Cecchi [Fri, 8 Jun 2012 22:58:51 +0000 (18:58 -0400)]
visuals: add a visual demo for GtkLevelBar
https://bugzilla.gnome.org/show_bug.cgi?id=677892
Cosimo Cecchi [Thu, 12 Jul 2012 14:52:00 +0000 (10:52 -0400)]
level-bar: add default Raleigh theming for GtkLevelBar
https://bugzilla.gnome.org/show_bug.cgi?id=677892
Cosimo Cecchi [Tue, 29 May 2012 21:00:33 +0000 (17:00 -0400)]
level-bar: introduce GtkLevelBar
Similar to CcStrengthBar from gnome-control-center, but more generic and
with thorough CSS styling support.
https://bugzilla.gnome.org/show_bug.cgi?id=677892
Cosimo Cecchi [Mon, 16 Jul 2012 02:23:32 +0000 (22:23 -0400)]
docs: remove duplicate entries in gtk3-sections
Piotr Drąg [Sun, 15 Jul 2012 21:31:39 +0000 (23:31 +0200)]
Updated Polish translation
Christian Kirbach [Sun, 15 Jul 2012 16:20:43 +0000 (18:20 +0200)]
Updated German translation
Matthias Clasen [Sun, 15 Jul 2012 15:45:21 +0000 (11:45 -0400)]
Fix preview sizing in GtkFontSelection
The code that was trying to limit preview size changes was
running into some width-for-height pitfalls. It turns out
that the dialog behaves quite ok without this code, so just
remove it.
Praveen Illa [Sun, 15 Jul 2012 11:59:46 +0000 (17:29 +0530)]
Updated Telugu Translation
Ihar Hrachyshka [Sun, 15 Jul 2012 11:34:18 +0000 (14:34 +0300)]
Updated Belarusian translation.
Matthias Clasen [Sun, 15 Jul 2012 04:53:46 +0000 (00:53 -0400)]
Add GDK_AVAILABLE annotations to new API
Matthias Clasen [Sun, 15 Jul 2012 04:39:02 +0000 (00:39 -0400)]
Clear cached row sensitivity when the filter changes
Now that filters may affect sensitivity of rows, we need
to clear the sensitivity column from the cache when the
filter changes. This fixes the problem where selecting a
different filter does not update the sensitivity of folders
until you change directories.
Matthias Clasen [Sun, 15 Jul 2012 04:37:41 +0000 (00:37 -0400)]
Emit row-changed notification
Emit row-changed when the filteredness of a visible row
changes in GtkFileSystemModel.
Matthias Clasen [Sun, 15 Jul 2012 01:16:39 +0000 (21:16 -0400)]
Test folder filtering
Add a filter to testfilechooser that can demonstrate folder
filtering on common directories, such as Documents or Downloads.
Federico Mena Quintero [Wed, 11 Jul 2012 22:50:15 +0000 (17:50 -0500)]
Make the logic for setting the sensitivity column a bit more clear
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Wed, 11 Jul 2012 21:32:52 +0000 (16:32 -0500)]
Make computing and setting the visibility/filters atomic operations
This way we remove paired function calls (compute/set pairs), and also make
it possible to avoid computing a filter twice, as setting the visibility
depends on filteredness.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Wed, 11 Jul 2012 20:47:53 +0000 (15:47 -0500)]
Make it clear that 'filtered' means 'filtered_out'
It bothers me that we call gtk_file_filter_filter(), then negate the result,
and the return *that* from node_should_be_filtered(). So, rename 'filtered'
throughout GtkFileSystemModel to 'filtered_out' to mean things that didn't
pass the filter.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Wed, 11 Jul 2012 19:58:32 +0000 (14:58 -0500)]
Remove superfluous check in node_set_filtered()
This was a copy-paste leftover from node_set_visible(). Filters are not
concerned with model freezes, so node_set_filtered() does not
need to handle freezes, either.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
William Jon McCann [Sun, 8 Jul 2012 07:25:02 +0000 (03:25 -0400)]
Desensitize filtered folders when in folder selection mode
https://bugzilla.gnome.org/show_bug.cgi?id=679333
Chao-Hsiung Liao [Sat, 14 Jul 2012 06:11:40 +0000 (14:11 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)
Matthias Clasen [Sat, 14 Jul 2012 03:05:36 +0000 (23:05 -0400)]
Cosmetic changes
Matthias Clasen [Sat, 14 Jul 2012 03:04:54 +0000 (23:04 -0400)]
Add GtkMenuButton and GtkSearchEntry to types file
Matthias Clasen [Sat, 14 Jul 2012 02:31:34 +0000 (22:31 -0400)]
Add GtkMenuButton and GtkSearchEntry to gallery
At the same time, remove GtkComboBoxEntry, which no longer exists.
Carlos Garnacho [Fri, 13 Jul 2012 13:03:30 +0000 (15:03 +0200)]
menu: Fix touch scrolling on menus close to the monitor edge
Specially in the case of comboboxes, those menus could enable scrolling
even if the contents could fit in the work area, and could show blank
space in order to line up the selected item with the combobox.
When such thing happens, take into account scroll_offset when relocating
the menu contents so contents don't jump directly onscreen, and apply
it so scrolling is allowed in the direction that brings the menu onscreen
and blocked in the opposite direction.
Also, wait for cancelling the scroll operation until the touch is released
even if the scrolling arrows disappeared, so the menu item underneath isn't
selected right away.
https://bugzilla.gnome.org/show_bug.cgi?id=678113
Carlos Garnacho [Fri, 13 Jul 2012 13:57:45 +0000 (15:57 +0200)]
statusicon: Rely on GtkIconHelper for pixbuf resizes
The same is now achieved by forcing pixbuf rescaling on the icon helper
Carlos Garnacho [Fri, 13 Jul 2012 13:55:44 +0000 (15:55 +0200)]
Ensure pixbufs as entry icons get resized
Entries don't expand vertically if they are given pixbufs larger
than the calculated height for the current font, resulting in
cropped icons, so force the pixbuf to be rescaled so it fits
on the entry allocated size.
https://bugzilla.gnome.org/show_bug.cgi?id=678087
Carlos Garnacho [Fri, 13 Jul 2012 13:54:29 +0000 (15:54 +0200)]
Add API to force a GtkIconHelper pixbuf rescaling
This API is handy in entries and status icons, where the size is
limited and independent of the pixbuf size
Carlos Garnacho [Fri, 13 Jul 2012 12:49:47 +0000 (14:49 +0200)]
menu: small code cleanup
Don't check twice for the widget being realized to move
both windows
Carlos Garnacho [Fri, 13 Jul 2012 12:47:38 +0000 (14:47 +0200)]
menu: code style fix
The newline before != looks unintentional
Carlos Garnacho [Wed, 6 Jun 2012 16:16:05 +0000 (18:16 +0200)]
icontheme: Don't assume a symbolic icon size of 16x16
If the symbolic icon has other size than 16x16, the embedder
SVG that overrides colors would still force that size, resulting
in clipping instead of resizing. So fetch the original pixbuf
size the first time a symbolic icon is requested for a GtkIconInfo,
and use that size for the embedder SVG so it can be scaled properly
afterwards.
https://bugzilla.gnome.org/show_bug.cgi?id=677567
Carlos Garnacho [Wed, 27 Jun 2012 12:51:57 +0000 (14:51 +0200)]
introspection: mark data in GtkCallback as closure
This is needed for so GtkContainer::forall() can be implemented
in non-native code, and the callback gets the passed data if
called.
https://bugzilla.gnome.org/show_bug.cgi?id=644926#c28
Matthias Clasen [Fri, 13 Jul 2012 11:36:31 +0000 (07:36 -0400)]
Some updates
Andika Triwidada [Fri, 13 Jul 2012 04:48:44 +0000 (11:48 +0700)]
Updated Indonesian translation of Property Nicks
Andika Triwidada [Fri, 13 Jul 2012 03:59:13 +0000 (10:59 +0700)]
Updated Indonesian translation
Rob Bradford [Wed, 11 Jul 2012 18:22:27 +0000 (19:22 +0100)]
wayland: Ensure we destroy the shell surface when destroying the surface
Otherwise we can try and use an invalid object that the compositor has already
deleted.
Rob Bradford [Wed, 11 Jul 2012 18:18:37 +0000 (19:18 +0100)]
wayland: wl_shell_surface_set_popup requires a valid seat and serial
If we don't have our own grab then get the grab from the parent.
Rob Bradford [Wed, 11 Jul 2012 18:17:45 +0000 (19:17 +0100)]
wayland: Protocol update: wl_pointer_set_cursor takes a serial
Rob Bradford [Wed, 11 Jul 2012 16:10:40 +0000 (17:10 +0100)]
wayland: Protocol update: wl_shell_surface_resize and _move take serials
Rob Bradford [Wed, 11 Jul 2012 16:09:23 +0000 (17:09 +0100)]
wayland: Save the serial number for the ping event
Rob Bradford [Wed, 11 Jul 2012 16:08:39 +0000 (17:08 +0100)]
wayland: Save the serial numbers for the pointer events
Rob Bradford [Wed, 11 Jul 2012 16:06:32 +0000 (17:06 +0100)]
wayland: Add internal API for handling Wayland serial numbers
We need to keep track of the serial numbers for various API requests.
Rob Bradford [Wed, 11 Jul 2012 15:12:50 +0000 (16:12 +0100)]
wayland: Ensure that _get_client_pointer returns a pointer
The previous implementation could return a device that is a keyboard.
Rob Bradford [Wed, 11 Jul 2012 13:43:50 +0000 (14:43 +0100)]
wayland: Port to libxkbcommon API changes
xkb_string_to_keysym -> xkb_keysym_from_name
xkb_keysym_get_name -> xkb_keysym_get_name
Rob Bradford [Wed, 11 Jul 2012 13:43:16 +0000 (14:43 +0100)]
wayland: Switch to new wayland cursors mechanism
Rob Bradford [Wed, 11 Jul 2012 13:40:31 +0000 (14:40 +0100)]
wayland: Protocol change: wl_buffer_damage
wl_buffer_damage is no longer necessary - it is sufficient to damage the
surface that the buffer is attached to instead.
Rob Bradford [Wed, 11 Jul 2012 13:38:28 +0000 (14:38 +0100)]
wayland: Protocol change: configure event
The 'time' value has been removed.
Rob Bradford [Wed, 11 Jul 2012 13:37:46 +0000 (14:37 +0100)]
wayland: Protocol change: wl_shell_surface_* take surfaces for parents
These functions used to take shell_surface objects and now take surface
objects the parents.
Rob Bradford [Wed, 11 Jul 2012 13:37:04 +0000 (14:37 +0100)]
wayland: Remove unused variable
Rob Bradford [Wed, 11 Jul 2012 13:36:03 +0000 (14:36 +0100)]
wayland: Temporary disable/hackaround keyboard code